Repository navigation
ci: read the exec-family patterns on product code only - #3409
Conversation
`diffPatterns` was read on every code file, so a test fixture that spawns or evaluates was called T3: #3382 was T3 for `new Function(` under runtime/flybot/plugins/social/test/. Move the five exec-family patterns to `diffPatternsNotInTests`, which is read on product code only; `.only(`/`.skip(` and the lint suppressions stay in `diffPatterns`, because in a test file they still mean something. Related #3393
QA verification — exact head
|
diffPatternsis read on every code file, so a test fixture that spawns or evaluates was called T3: #3382 was called T3 fornew Function(underruntime/flybot/plugins/social/test/.This moves the five exec-family patterns (
child_process,eval(,new Function(,exec(Sync)(,os.system/subprocess.*) intodiffPatternsNotInTests, which is read on product code only. Nothing else in the rules file moves.What changes for a one-line hit
Same line judged with the engine in this branch, before and after:
tests/harness.mjs+import { exec } from 'node:child_process'runtime/flybot/plugins/social/test/poll-visibility.test.js+new Function(source)runtime/flybot/plugins/social/src/a.js+import { exec } from 'node:child_process'services/bot-social/src/social.ts+eval(x)tests/test_a.py+test.only("x")Local checks on this head
Head
dbc8209473e2fe9798fed8498b317866cf1428a7, tree11ac22cbee3fc31078c95d7327e86bb88790c681:node --test .github/scripts/*.test.mjson that tree: 13 files, 112 pass, 0 fail.git diff --stat cfde852f...this head: 2 files, +18/−6 (risk-rules.json6/6,risk-gate.test.mjs12/0); no third file.These are local results. There is no CI reading for this head yet.
Prediction, not a result
.github/**); that is advisory only.Not done here
.html,.jsonand.cssare not treated as executable, so a script hidden in one of them is out of scope for this slice..only(/.skip(and the lint suppressions stay indiffPatterns: inside a test file they still mean something.docs/deploy) is still not seen; reading+#!/out of the patch is a separate slice.Related #3393